package net.orange.framework.model;

/**
 * Common information Type definition.
 */
public enum CommoninfoType {

	homepage("User Home Page"), dbdriver("Database Driver"), dburl(
			"Database URL");

	private String desc;

	CommoninfoType(String desc) {
		this.desc = desc;
	}

	/**
	 * @return Returns the desc.
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * Parse the string to common info type.
	 * 
	 * @return The common info type.
	 */
	public static CommoninfoType parseOf(String s) {
		for (CommoninfoType rt : CommoninfoType.values())
			if (rt.name().equals(s))
				return rt;
		return null;
	}
}
